package com.jinglin.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 视频弹幕
 * </p>
 *
 * @author ${author}
 * @since 2025-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="VideoDanmu对象", description="视频弹幕")
public class VideoDanmu extends Model<VideoDanmu> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
      @TableId(value = "danmu_id", type = IdType.ASSIGN_ID)
    private String danmuId;

    @ApiModelProperty(value = "视频ID")
    private String videoId;

    @ApiModelProperty(value = "唯一ID")
    private String fileId;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "发布时间")
    private LocalDateTime postTime;

    @ApiModelProperty(value = "内容")
    private String text;

    @ApiModelProperty(value = "展示位置")
    private Integer mode;

    @ApiModelProperty(value = "颜色")
    private String color;

    @ApiModelProperty(value = "展示时间")
    private Integer time;

    @TableField(exist = false)
    private String videoName;
    @TableField(exist = false)
    private String videoCover;
    @TableField(exist = false)
    private String nickName;

    @ApiModelProperty(value = "删除为0 未删除为1")
    @TableLogic
    private Integer deleted;


    @Override
    protected Serializable pkVal() {
        return this.danmuId;
    }

}
